package IC.AST.nodes;

import IC.AST.*;

/**
 * a local variable
 */
public class SimpleVar extends Variable {
	private String ID;	// the variable name

	/**
	 * @param ID the variable name
	 * @param fileName TODO
	 * @param line the node line number
	 * @param column the node column number
	 */
	public SimpleVar(String ID, String fileName, int line, int column) {
		super(fileName,line, column);
		this.ID = ID;
	}

	/**
	 * @return the variable name
	 */
	public String getID() {
		return this.ID;
	}

	public <D,U> U accept(PropogatingVisitor<D,U> v, D context) throws Exception {
		return v.visit(this,context);
	}
}
